x86/boot: call reloc() using stdcall calling convention
authorDaniel Kiper <daniel.kiper@oracle.com>
Thu, 25 Aug 2016 12:02:53 +0000 (14:02 +0200)
committerJan Beulich <jbeulich@suse.com>
Thu, 25 Aug 2016 12:02:53 +0000 (14:02 +0200)
commit8290b39f2b324c1c486ec42f952a1276c9904109
tree6fb8568c4011cf19876cd2b6abe80571cc6d4ad2
parent8612bb99350d3a629bfe3a73816c144410f536ef
x86/boot: call reloc() using stdcall calling convention

Current reloc() call method makes confusion and does not scale well
for more arguments. And subsequent patch adding multiboot2 protocol
support have to pass 3 arguments instead of 2. Hence, move reloc()
call to stdcall calling convention. One may argue that we should use
standard cdecl calling convention. However, stdcall is better here
than cdecl because we do not need to remove "manually" arguments from
stack in xen/arch/x86/boot/head.S assembly file.

Suggested-by: Jan Beulich <jbeulich@suse.com>
Signed-off-by: Daniel Kiper <daniel.kiper@oracle.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/boot/head.S
xen/arch/x86/boot/reloc.c